import VueRouter from "vue-router";
import Test from "../components/Test";
import Home from "../components/Home";
import About from "../components/About";
import ElmTest from "../components/ElmTest";
import ApiTest from "../components/ApiTest";
import Login from "../components/pages/login/Login";
import dateTime from "@/components/pages/dateTest/dateTime";
const router = new VueRouter({
   routes: [
       {
           name:'login',
           path: '/login',
           component: Login
       },
       {
           name:'date',
           path: '/date',
           component: dateTime
       },
        {
            name:'home',
            path: '/home',
            component: Home
        },
       {
           path: '/ele',
           component: ElmTest
       },
       {
           name:'api',
           path: '/api',
           component:ApiTest
       },

{
    path: '/about',
        component: About
},
{
    path: '/test',
        component: Test
},
{
    path: '/',
        redirect: '/login'
},

]
})

export default router